<div class='center_form'>
    <div class="center_form_right">
        <div class='center_form_btn_div' onclick='javascript:Common.submit();'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/save.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("saveBtn"); ?></div>
        </div>
        <div class='center_form_btn_div' onclick='javascript:Common.gotoUrl("<?php echo HttpUtil::baseUrl();?>/consult/consult");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/cancel.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("cancelBtn"); ?></div>
        </div>
    </div>
</div>
<div class="clear"></div>
<div class="centerbig_form">
      <div class="center_top"><span class="center_top_title"><?php echo $this->translate("addConsultPage"); ?></span></div>
      <div class="right_form_content">
            <div class="centerbig_right">
               <div class="form_content">
                    <form action="<?php echo $this->form->getAction(); ?>" method="post">
                    	<div class='form_line_div'>
                    		<?php echo ZendFormUtil::renderLabel($this->form->customerId, "", "")?>
							<?php //echo $this->form->customerId->render()?>
							<div class="form_element">
								<input type="text" value="<?php echo $this->form->customerId->getValue()?>" id="customerId" name="customerId"/>
							</div>
							<?php 
							$cidElementId = $this->form->customerId->getAttrib("id");
							if (!empty($cidElementId)){
    							echo "<div class='form_element_error' id='".$cidElementId."Error'>";
							}
                            else{
                                echo "<div class='form_element_error'>";
                            }                  
                            $errors = $this->form->customerId->getMessages();                      
							echo empty($errors)? "" : array_shift($errors);
							echo "</div>";
							?>
						</div>
                        <div class='clear'></div> 
                        <?php ZendFormUtil::renderElement($this->form->type); ?>
						<div class="form_line_div">
							<div class="form_element_label"><?php echo $this->translate("productId"); ?></div>
							<div class="form_element">
							     <input id="productId" type="text" value="" name="item"/>
							</div>
	                        <span style="cursor:pointer;" onclick="javascript:Inventory.openSearchDialog('<?php echo HttpUtil::baseUrl();?>');">
	                             <img src="<?php echo HttpUtil::baseUrl();?>/images/search.gif"/>
	                        </span>                            
						</div>
                        <?php ZendFormUtil::renderElement($this->form->hProductId); ?>
                        <?php ZendFormUtil::renderElement($this->form->hReplayId); ?>
                        <?php ZendFormUtil::renderElement($this->form->question); ?>
                        <?php ZendFormUtil::renderElement($this->form->reply); ?>
                        <div class="form_line_div" align="center">
                        	<input type="image" name='submit' src='<?php echo HttpUtil::baseUrl();?>/images/save.gif'>保存
                        	<input type="image" name='cancel' src='<?php echo HttpUtil::baseUrl();?>/images/cancel.gif'>取消
                        </div>
                    </form>
               </div>
            </div>
      </div>
      <div class='clear'></div>
</div>
<div class='clear'></div>
<div id="searchDialog"></div>